﻿<!--#include virtual="/Common/Config.asp" -->
<!--#include virtual="/Common/conn.asp" -->
<!--#include virtual="/2010admin/Check_IsLogin.asp" -->
<!--#include virtual="/Common/Function.asp" -->
<!--#include virtual="/2010admin/Common/Query_List_GetSQL.asp"-->
<!--#include file="Spot_Pic_Inc.asp" -->

<%
'==========================================
'**********	Modify  Start  ****************
dim TITLE,DISPFILD,PAGESIZE,SQL,HV
dim AddLabel,addURL,delURL,editURL,detailURL,detailURLsn
TITLE="景点图片管理"
DISPFILD="IP_Title<图片标题,IsCover<封面"
PAGESIZE="20"
HV="H"

If Request.ServerVariables ("Request_Method")="POST" Then
	Spot_ID = reform("Spot_ID")
Else
	Spot_ID = requery("Spot_ID")
End If 

Call Check_IsNumeric_Msg(Spot_ID,"资讯ID")

addURL="Spot_Pic_add.asp?Spot_ID="&Spot_ID
AddLabel = "批量增加图片"
delURL="Spot_Pic_Del.asp?Spot_ID="&Spot_ID
editURL ="Spot_Pic_Edit.asp?Spot_ID="&Spot_ID
detailURLsn=1


sql = "SELECT IP_ID,Spot_ID,IP_Title,IP_Path,IP_Order,CASE IP_IsCover "&_
	  " WHEN '1' THEN '是' " &_
	  " Else '否' " &_
      " END AS IsCover " &_
	  " FROM Spot_Pic WHERE Spot_ID =  "&Spot_ID
	  
	
	
	sql	 = Sql & "ORDER BY IP_ID DESC"
	'writebr sql

'**********	Modify  Stop  *****************
'==========================================

If Request.form("previous")="上一页" Then PageNo=request.form("PageNo")-1
If Request.form("next")="下一页" Then PageNo=request.form("PageNo")+1
If Request.form("GotoPageNo")<>"" Then PageNo=request.form("GotoPageNo")
If Request.form("GotoPageNo2")<>"" Then	PageNo=request.form("GotoPageNo2")
%>

<HTML>
<HEAD>
<TITLE><%=Title%></TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="/2010admin/css/default.css" type="text/css" rel="stylesheet">
<script language="javascript" src="/lib/prototype.js"></script>
<script language="javascript" src="/2010admin/js/function.js"></script>
</head>
<BODY BGCOLOR="#FFFFFF"><br>
<form method="post" name="form">
<TABLE cellSpacing=0 width="100%" border=0>
  <TBODY>
  <TR>
    <TD width="43%" align=left><FONT size=4><B><%=TITLE%></B></FONT>
	<%if addURL<>"" then%>
	<%=GetSpace(4)%><input type='button' class='inputbutton' value='<%=AddLabel%>' name='add' onClick="window.location.href='<%=addURL%>'">
	<%end if%>	
	</TD>
    <TD width="41%" align=right>
	</TD>
    <TD vAlign=middle width="16%">
	</TD>
  </TR>
  </TBODY>
</TABLE>
<HR SIZE=1>
<%
IF NOT Query_List_GetSQL(DISPFILD,SQL,PAGESIZE,HV,delURL,editURL,detailURL,detailURLsn) THEN
	Response.Write "<br><BR><center><font size=2><font color=#ff0000>程序执行错误！请与系统管理员联系！"
END If

Call conn_close()

%>
</FORM>
</BODY>
</HTML>
